package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author  djq
 * @date 2023/5/11 14:11
 * @description: 
 */

/**
 * 项目管理人员巡检
 */
@ApiModel(description = "项目管理人员巡检")
@Data
public class OnsiteinspectionDto extends BaseEntity {
    @ApiModelProperty(value = "记录ID")
    private Long onsitId;

    @ApiModelProperty(value = "巡检设备")
    private Long equipId;

    @ApiModelProperty(value = "巡检项目")
    private Long itemId;

    @ApiModelProperty(value = "巡检要求")
    private String itemRequire;

    @ApiModelProperty(value = "巡检人员")
    private String operator;

    @ApiModelProperty(value = "巡检日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime onsiteDate;

    @ApiModelProperty(value = "巡检结果：0-通过;1-未通过")
    private Integer onsiteResult;

    @ApiModelProperty(value = "巡检描述")
    private String onsiteNote;

    @ApiModelProperty(value = "0-已处理;1-未处理")
    private Integer auditState;

    @ApiModelProperty(value = "处理时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditDate;

    @ApiModelProperty(value = "操作人员")
    private Long staffId;

    @ApiModelProperty(value = "整改要求")
    private String expRequire;

    @ApiModelProperty(value = "附件地址url")
    private List<String> annexUrl;

    @ApiModelProperty(value = "巡检详情")
    private List<OnsitedetailDto> onsitedetailDtos;
}